//
//  KDWorkingReportTool.m
//  WangJingApp
//
//  Created by 魏强 on 17/11/2.
//  Copyright © 2017年 KDTech. All rights reserved.
//

#import "KDWorkingReportTool.h"
#import "KDBaseTool.h"

#import "KDGetWorkingReportListParam.h"
#import "KDGetWorkingReportParam.h"
@implementation KDWorkingReportTool
+ (void)getWorkingReportListWithParam:(KDGetWorkingReportListParam *)param success:(void (^)(KDBaseResult *responseObejct))success failure:(void(^)(NSError *error))failure{
    NSString *url = [NSString stringWithFormat:@"%@%@",ServerActionAddr,param.method];
    [KDBaseTool get:url param:param resultClass:[KDBaseResult class] success:success failure:failure];
}

+ (void)getWorkingReportWithParam:(KDGetWorkingReportParam *)param success:(void (^)(KDBaseResult *responseObejct))success failure:(void(^)(NSError *error))failure{
    NSString *url = [NSString stringWithFormat:@"%@%@",ServerActionAddr,param.method];
    [KDBaseTool get:url param:param resultClass:[KDBaseResult class] success:success failure:failure];
}
@end
